package com.suifeng.mq.order;

import com.alibaba.cloud.seata.GlobalTransactionAutoConfiguration;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * RabbitAutoConfiguration
 *
 * seata注意事项 参照链接：https://github.com/seata/seata-samples/tree/master/springcloud-jpa-seata
 */
@EnableAspectJAutoProxy(exposeProxy = true)
@EnableRabbit
@EnableDiscoveryClient
@EnableFeignClients
@SpringBootApplication(exclude = GlobalTransactionAutoConfiguration.class)
public class MqOrderApplication {

    public static void main(String[] args) {
        SpringApplication.run(MqOrderApplication.class, args);
    }

}
